package com.zhang.zhangapp.bean.user;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Administrator on 2018/4/16.
 */

public class Message implements Parcelable{
    private String shopCode;
    private String link;
    private String ctime;
    private String title;
    private String infodesc;

    protected Message(Parcel in) {
        shopCode = in.readString();
        link = in.readString();
        ctime = in.readString();
        title = in.readString();
        infodesc = in.readString();
    }

    public static final Creator<Message> CREATOR = new Creator<Message>() {
        @Override
        public Message createFromParcel(Parcel in) {
            return new Message(in);
        }

        @Override
        public Message[] newArray(int size) {
            return new Message[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeString(shopCode);
        parcel.writeString(link);
        parcel.writeString(ctime);
        parcel.writeString(title);
        parcel.writeString(infodesc);
    }

    public String getShopCode() {
        return shopCode;
    }

    public void setShopCode(String shopCode) {
        this.shopCode = shopCode;
    }

    public String getLink() {
        return link;
    }

    public void setLink(String link) {
        this.link = link;
    }

    public String getCtime() {
        return ctime;
    }

    public void setCtime(String ctime) {
        this.ctime = ctime;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getInfodesc() {
        return infodesc;
    }

    public void setInfodesc(String infodesc) {
        this.infodesc = infodesc;
    }
}
